package by.bsu.scs.util.runner;

import by.bsu.scs.db.dao.MessageHome;
import by.bsu.scs.db.dao.UserHome;
import by.bsu.scs.model.User;

/**
 * This class is for testing
 * 
 * @author Katherina_Prohorenko
 *
 */
public class TestFindByExample {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		//testFind();
		User user = new User();
		user.setEmail("helen@gmail.com");
		//user.setEmail("varvara@gmail.com");
		//user.setEmail("aleksandr@gmail.com");
		//user.setEmail("maria@gmail.com");
		//user.setEmail("kate@gmail.com");
		//user.setEmail("marmal@gmail.com");
		//user.setEmail("libik@gmail.com");
		//user.setEmail("vorobei@gmail.com");
		//user.setEmail("andreuk@gmail.com");
		//user.setEmail("ladik@gmail.com");
		//user.setEmail("radino@gmail.com");
		//user.setEmail("chernik@gmail.com");
		//user.setEmail("erofeeva@gmail.com");
		//user.setEmail("podolyakina@gmail.com");
		//user.setEmail("urkovskii@gmail.com");
		//user.setEmail("vinichek@gmail.com");
		//user.setEmail("zagorskaya@gmail.com");
		//user.setEmail("markevich@gmail.com");
		System.out.println(((User)new UserHome().findByExample(user).get(0)).getUserName());
	}
	
	private static void testFind(){
		/*User exampleUser = new User();
		exampleUser.setUserId(23);
		
		DisciplineHome disciplineDao = new DisciplineHome();
		List<Discipline> disciplineList = disciplineDao.getDisciplineByInstructor(exampleUser);
		
		for(Discipline d:disciplineList){
			System.out.println(d.getDisciplineName() +"\t"+ d.getInstructor().getEmail());
			
		}*/
		
		System.out.println("!!!!!!!!!!!!!!!!!!!!" + new MessageHome().getMessageByIdUserTo(new UserHome().findById(23)));
	}

}
